package com.beamfield.dao.lab;

import com.beamfield.model.InstrumentMeasure;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface InstrumentMeasureMapper {
    int deleteByPrimaryKey(Long id);

    int insert(InstrumentMeasure record);

    int insertSelective(InstrumentMeasure record);

    InstrumentMeasure selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(InstrumentMeasure record);

    int updateByPrimaryKey(InstrumentMeasure record);

    List<InstrumentMeasure> getMeasureList(@Param("offset")Integer offset, @Param("limit")Integer limit, @Param("instr_name")String instr_name, @Param("manufacturer")String manufacturer, @Param("beam_id")Long beam_id);

    int getCount(@Param("instr_name")String instr_name, @Param("manufacturer")String manufacturer, @Param("beam_id")Long beam_id);

}